FROM python:3.9.2-slim
  
MAINTAINER xuemingliang066@163.com

ENV PYTHONUNBUFFERED 1

RUN mkdir /backend
WORKDIR /backend
ADD ./ /backend/
RUN chmod 755 /backend/init.sh && pip config set global.index-url http://mirrors.aliyun.com/pypi/simple && pip config set install.trusted-host mirrors.aliyun.com && python -m pip install --upgrade pip && pip install gunicorn && pip install -r /backend/requirements.txt
